from django.contrib import admin

from .models import Image


class ImageAdmin(admin.ModelAdmin):
    list_display = ('caption', 'image_url', 'preview')
    search_fields = ('caption', 'image')


admin.site.register(Image, ImageAdmin)
